<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>刪除系統設定</title>
</head>
<body>
<% if(session.getAttribute("access") == "y" ){%>
<jsp:useBean id="mydb" scope="page" class="bean.ConDbBean"/> <%//連結資料庫的bean %>
<% 
	String[] dels = request.getParameterValues("del");
	String sql="";
	for(int i = 0; i < dels.length; i++) { 
		sql="DELETE FROM SYS_SETTING WHERE S_ID='"+dels[i]+"'"; 
        mydb.executeDelete(sql);
    }
	response.sendRedirect("lookSetting.jsp"); //直接跳頁到listmember.jsp
%>
<%
  }
  else{
  	response.sendRedirect("../index.jsp"); //若沒有登入則回到index.jsp
  } 
  %>
</body>
</html>


